package com.charger.PromoteOperations.controller;

import com.charger.PromoteOperations.domain.Rulesparticipation;
import com.charger.PromoteOperations.service.RulesparticipationService;
import com.charger.common.annotation.Anonymous;
import com.charger.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName RulesparticipationController
 * @Description 组团规则
 * @Author Lilysi
 * @Date 2024//11//22//20:26
 * @Version 1.0
 */
@RestController
@RequestMapping("/Rulesparticipation")
public class RulesparticipationController {
    @Autowired
    private RulesparticipationService rulesparticipationService;

    @GetMapping("/getAll")
    @Anonymous
    public AjaxResult getAll(){
        List<Rulesparticipation> list = rulesparticipationService.list();
        return AjaxResult.success(list);
    }
}
